#ifndef DOPPLER_GATE_H
#define DOPPLER_GATE_H

#include <QtGui/QColor>
#include <QtGui/QGraphicsItem>
#include "DopplerGraphicsItem.h"

class DopplerGateItem : public DopplerGraphicsItem
{
public:
    DopplerGateItem(const QColor& cColor_);

    QRectF boundingRect() const;
    QPainterPath shape() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *item, QWidget *widget);

protected:
    void mousePressEvent(QGraphicsSceneMouseEvent *event);
    void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
    //void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);

private:
    QColor m_cColor;

};

#endif	//DOPPLER_GATE_H
